import { post } from '@/utils/ajax'

export function insertTemplateComp(params) {
  return post('/code/component/template/insert', params)
}

export function searchTemplateCompByPage(params) {
  return post('/code/component/template/search', params)
}

export function searchTemplateCompList(params) {
  return post('/code/component/template/searchAll', params)
}

export function selectTemplateCompById(id) {
  return post('/code/component/template/selectById', { id })
}

export function updateTemplateCompById(params) {
  return post('/code/component/template/updateById', params)
}

export function deleteTemplateCompById(id) {
  return post('/code/component/template/deleteById', { id })
}
